package cc.wanforme.fsync.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 预设分组
 */
public class GroupMap {
    @TableId( type = IdType.AUTO)
    private Long id;

    // 组名
    private String name;

    // 源client (保留，目前应该全都是 null，表示 server自己)
    private Long sourceClient;
    // 源文件夹路径
    private String source;

    // 备份地址
    private Long targetClient;
    // 新文件夹路径
    private String target;

    // 备注
    private String mark;

    /* 参考 SyncMeta 中的说明，这里只是做持久存储 */
    private String rewritePath;

    // client 存在文件时，覆盖文件。 1 - 覆盖，0 - 保留
    // 参考 SyncMeta 中的说明，这里只是做持久存储
    private Integer cover;

    // 仅存在于 client 上的文件。 0 - 不处理， 1 - 删除
    private int fileOnlyOnClient = 0;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSourceClient() {
        return sourceClient;
    }

    public void setSourceClient(Long sourceClient) {
        this.sourceClient = sourceClient;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Long getTargetClient() {
        return targetClient;
    }

    public void setTargetClient(Long targetClient) {
        this.targetClient = targetClient;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getRewritePath() {
        return rewritePath;
    }

    public void setRewritePath(String rewritePath) {
        this.rewritePath = rewritePath;
    }

    public Integer getCover() {
        return cover;
    }

    public void setCover(Integer cover) {
        this.cover = cover;
    }

    public int getFileOnlyOnClient() {
        return fileOnlyOnClient;
    }

    public void setFileOnlyOnClient(int fileOnlyOnClient) {
        this.fileOnlyOnClient = fileOnlyOnClient;
    }

}
